%h1 Admin Page

.menu
  = link_to "[add new country]", :action => 'new'
  or 
  = link_to "[upload country list]", :action => 'upload'
  %br/
  = link_to "[view all contestants]", :action => 'users'
  = link_to "[generate password]", :action => 'passwd'
  %br/
  = link_to "[import user data]", :action => 'import'
  = link_to "[export user data]", :action => 'export'
  = link_to "[log out]", :action => 'logout'

= content_tag(:div, flash[:notice], :class => "notice") if flash[:notice]!=nil

%table.list
  %tr.header
    %th Name
    %th Login
    %th Password
    %th Email
    %th
  - @countries.each do |country|
    %tr
      %td.name=h country.name
      %td.name=h country.login
      %td.name=h country.password
      %td.name=h country.email
      %td
        = link_to '[edit]', :action => 'edit', :id => country
        = link_to '[delete]', :action => 'delete', :id => country
